package com.lagou.edu.service;

import com.lagou.edu.util.Result;

import javax.servlet.http.HttpServletResponse;


public interface UserService {

    /**
     * 登录
     */
    public Result login(String email, String password, HttpServletResponse response);


    /**
     * 注册
     */
    public Result register(String email, String password, String code, HttpServletResponse httpServletResponse);


    /**
     * 根据token查询用户信息：欢迎页用到
     */
    public Result queryUserInfoByToken(String token);

    /**
     * 验证邮箱是否已经被注册
     * @param email
     * @return
     */
    Boolean isRegistered(String email);
}
